<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Giveda® Embedded Midware: API/gColor.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Giveda® Embedded Midware
   &#160;<span id="projectnumber">1.2.0</span>
   </div>
   <div id="projectbrief">本文档受《版权法》、《版权公约》保护。深圳技达®版权所有</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>友元</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>宏定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_19ea4dbfe8f0e4681f60b9b97f7b5d11.html">API</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">gColor.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_g_color.html" title="颜色、像素， GColor 提供了对ARGB8888格式像素的封装 ">GColor</a> 颜色、像素。  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="config__giveda_8h.html">config_giveda.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="g_global_8h.html">gGlobal.h</a>&gt;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_color.html">GColor</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">颜色、像素， <a class="el" href="class_g_color.html" title="颜色、像素， GColor 提供了对ARGB8888格式像素的封装 ">GColor</a> 提供了对ARGB8888格式像素的封装  <a href="class_g_color.html#details">更多...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a0359532bf90ca9d57392246e52ba4d87"><td class="memItemLeft" align="right" valign="top">typedef uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a></td></tr>
<tr class="separator:a0359532bf90ca9d57392246e52ba4d87"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a107261a140755bb103983277aa84cd3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#a107261a140755bb103983277aa84cd3a">gRed</a> (<a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> rgb)</td></tr>
<tr class="memdesc:a107261a140755bb103983277aa84cd3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">代表一个像素  <a href="#a107261a140755bb103983277aa84cd3a">更多...</a><br/></td></tr>
<tr class="separator:a107261a140755bb103983277aa84cd3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4e2b62d8894724c9834a5707267ab67"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#ab4e2b62d8894724c9834a5707267ab67">gGreen</a> (<a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> rgb)</td></tr>
<tr class="memdesc:ab4e2b62d8894724c9834a5707267ab67"><td class="mdescLeft">&#160;</td><td class="mdescRight">提取 GRgb 中的绿色值  <a href="#ab4e2b62d8894724c9834a5707267ab67">更多...</a><br/></td></tr>
<tr class="separator:ab4e2b62d8894724c9834a5707267ab67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa34b2627a4d0c427665a91427e10cbaf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#aa34b2627a4d0c427665a91427e10cbaf">gBlue</a> (<a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> rgb)</td></tr>
<tr class="memdesc:aa34b2627a4d0c427665a91427e10cbaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">提取 GRgb 中的蓝色值  <a href="#aa34b2627a4d0c427665a91427e10cbaf">更多...</a><br/></td></tr>
<tr class="separator:aa34b2627a4d0c427665a91427e10cbaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef55424114b2205007d9a137939a4b7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#aef55424114b2205007d9a137939a4b7b">gAlpha</a> (<a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> rgb)</td></tr>
<tr class="memdesc:aef55424114b2205007d9a137939a4b7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">提取 GRgb 中的不透明度  <a href="#aef55424114b2205007d9a137939a4b7b">更多...</a><br/></td></tr>
<tr class="separator:aef55424114b2205007d9a137939a4b7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99ee3b47a815c13ad3fdec9a2a6c1f38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#a99ee3b47a815c13ad3fdec9a2a6c1f38">gRgb</a> (int r, int g, int b)</td></tr>
<tr class="memdesc:a99ee3b47a815c13ad3fdec9a2a6c1f38"><td class="mdescLeft">&#160;</td><td class="mdescRight">合成ARGB8888像素，不透明度为0xFF(完全不透明)  <a href="#a99ee3b47a815c13ad3fdec9a2a6c1f38">更多...</a><br/></td></tr>
<tr class="separator:a99ee3b47a815c13ad3fdec9a2a6c1f38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac07ddd3c5b4e7043f6b89ed216a67a98"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_color_8h.html#ac07ddd3c5b4e7043f6b89ed216a67a98">gRgba</a> (int r, int g, int b, int a)</td></tr>
<tr class="memdesc:ac07ddd3c5b4e7043f6b89ed216a67a98"><td class="mdescLeft">&#160;</td><td class="mdescRight">合成ARGB8888像素  <a href="#ac07ddd3c5b4e7043f6b89ed216a67a98">更多...</a><br/></td></tr>
<tr class="separator:ac07ddd3c5b4e7043f6b89ed216a67a98"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="class_g_color.html" title="颜色、像素， GColor 提供了对ARGB8888格式像素的封装 ">GColor</a> 颜色、像素。 </p>
<dl class="section author"><dt>作者</dt><dd>明心 </dd></dl>
<dl class="section version"><dt>版本</dt><dd>1.0.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2019-2-4 </dd></dl>
</div><h2 class="groupheader">类型定义说明</h2>
<a class="anchor" id="a0359532bf90ca9d57392246e52ba4d87"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef uint32_t <a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a class="anchor" id="aef55424114b2205007d9a137939a4b7b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> gAlpha </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td>
          <td class="paramname"><em>rgb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>提取 GRgb 中的不透明度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rgb</td><td>color in ARGB8888 format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>GRgb </dd></dl>

</div>
</div>
<a class="anchor" id="aa34b2627a4d0c427665a91427e10cbaf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> gBlue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td>
          <td class="paramname"><em>rgb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>提取 GRgb 中的蓝色值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rgb</td><td>color in ARGB8888 format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>GRgb </dd></dl>

</div>
</div>
<a class="anchor" id="ab4e2b62d8894724c9834a5707267ab67"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> gGreen </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td>
          <td class="paramname"><em>rgb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>提取 GRgb 中的绿色值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rgb</td><td>color in ARGB8888 format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>GRgb </dd></dl>

</div>
</div>
<a class="anchor" id="a107261a140755bb103983277aa84cd3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> gRed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a>&#160;</td>
          <td class="paramname"><em>rgb</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>代表一个像素 </p>
<p>提取 GRgb 中的红色值</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rgb</td><td>color in ARGB8888 format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>GRgb </dd></dl>

</div>
</div>
<a class="anchor" id="a99ee3b47a815c13ad3fdec9a2a6c1f38"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> gRgb </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>合成ARGB8888像素，不透明度为0xFF(完全不透明) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>红色值 </td></tr>
    <tr><td class="paramname">g</td><td>绿色值 </td></tr>
    <tr><td class="paramname">b</td><td>蓝色值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>GRgb ARGB8888像素 </dd></dl>

</div>
</div>
<a class="anchor" id="ac07ddd3c5b4e7043f6b89ed216a67a98"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_color_8h.html#a0359532bf90ca9d57392246e52ba4d87">GRgb</a> gRgba </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>合成ARGB8888像素 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>红色值 </td></tr>
    <tr><td class="paramname">g</td><td>绿色值 </td></tr>
    <tr><td class="paramname">b</td><td>蓝色值 </td></tr>
    <tr><td class="paramname">a</td><td>不透明度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>GRgb ARGB8888像素 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2019年 三月 23日 星期六 14:13:09 , 为 Giveda® Embedded Midware使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
